package com.tnf.bc.bground.common.utils.beanutils;

/**
 * @description: //密码正则
 * @author: lzl
 * @create: 2022-11-25 22:57
 **/
public class RegularUtils {

    //6-20位不能包含中文和指定特殊字符
    public static final String patternStr1 ="[#?!@$%^&*-.^\\u4E00-\\u9FA5]{6,20}+$";
    //密码必须是包含大写字母、小写字母、数字、特殊符号（#?!@$%^&*-.）的8位-16位的组合
    public static final String patternStr2 ="^(?![A-Za-z0-9]+$)(?![a-z0-9#?!@$%^&*-.]+$)(?![A-Za-z#?!@$%^&*-.]+$)(?![A-Z0-9#?!@$%^&*-.]+$)[a-zA-Z0-9#?!@$%^&*-.]{8,16}$";
    //密码必须包含大写字母、小写字母、数字、特殊符号（#?!@$%^&*-.）4种类型的8位-16位的组合
    public static final String patternStr3 ="^(?=.*[A-Z])(?=.*[a-z])(?=.*[0-9])(?=.*[#?!@$%^&*-.]).{8,16}$";

}